package com.cls.common.message;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author: WeiMaoMao
 * @date:
 */
@Component
public class RedisReceiveType {

    @Value("${spring.redis.database}")
    public void setRedisDatabseIndex(String redisDatabaseIndex) {
        RedisReceiveType.redisDatabseIndex = redisDatabseIndex;
    }


    protected static String redisDatabseIndex;

    protected static String machineNo;


    public static String getRedisDatabseIndex() {
        return redisDatabseIndex;
    }



    public static String getClientMessage() {
        return redisDatabseIndex + CLIENT_MESSAGE;
    }



    /**
     * 客户端信息
     */
    protected static final String CLIENT_MESSAGE = "clientMessageListenerAdapter";

}
